﻿#region NameSpace
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Eb.StockManagement;
#endregion

public partial class ViewProductDetails : System.Web.UI.Page
{
    #region Fields
    StockManagement stockMgmt = new StockManagement();
    #endregion
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            PopulateProductDetails();
        }
    }
    #region Methods
    protected void PopulateProductDetails()
    {
        int productID = Convert.ToInt32(Server.HtmlEncode(Request.QueryString["id"]));
        DataSet productDS = stockMgmt.GetProductListByProductID(productID);
        grvProductDetails.DataSource = productDS;
        grvProductDetails.DataBind();

    }
    #endregion
    protected void btnBack_Click(object sender, EventArgs e)
    {
        Session["UserManager_Control"] = "TaskList.ascx";
        Response.Redirect("BusinessProcessAutomation.aspx");


    }
}
